const express = require('express')
const router = express.Router()
const expressJoi = require('@escook/express-joi')
const {add_project_comment_scheme, del_project_comment_schema, update_project_comment_schema, get_project_comment_schema } = require('../schema/projectComment')

const projectCommentHandler = require('../router_handler/projectComment')
// 增
router.post('/addProjectComment', expressJoi({add_project_comment_scheme, del_project_comment_schema}), projectCommentHandler.addProjectComment)

// 删
router.get('/delProjectComment', expressJoi(del_project_comment_schema), projectCommentHandler.delProjectComment)

// 改
router.post('/updateProjectComment', expressJoi(update_project_comment_schema), projectCommentHandler.updateProjectComment)

// 查
router.get('/getProjectCommentAll', expressJoi(get_project_comment_schema), projectCommentHandler.getProjectCommentAll)

module.exports = router
